<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title id="eInShow">无标题文档</title>
<script type="text/javascript">
var btnShow = document.getElementById("eInShow");
var getDoc2Ele    = function(pre,src)
{
	if(!src)
	{
		src = pre;
		pre = document.body;
	}else
	{
		pre = pre || document.body;
	}
	var oList = [],o=null;
	if(o = pre.firstChild)
	{
		oList.push(o);
		while(o = o.nextSibling)oList.push(o);
	}
	var i = 0,rs = false;
	for(i in oList)
	{
		o = oList[i];
		if(o == src)
		{
			return 'childNodes['+i+']';
		}else if(o.tagName && o.hasChildNodes())
		{
			if(rs = getDoc2Ele(o,src))
			{
				return 'childNodes['+i+'].'+rs;
			}
		}else if(o.tagName && o.tagName == "FRAME" || o.tagName == "IFRAME")
		{
			if(rs = getDoc2Ele(o.contentWindow.document,src))
			{
				return 'childNodes['+i+'].contentWindow.document.'+rs;
			}
		}				
	}
	return false;
}
var getEleStation = function(ev)
{
	//alert(document.childNodes[1].childNodes[1].childNodes[1].childNodes[5].contentWindow.document.childNodes[1].childNodes[1].childNodes[1].childNodes[2].childNodes[0].childNodes[2].value);
	ev = ev || window.event;
	if(ev)
	{
		var $this = {},pre,i=0;
		var el = "document."+getDoc2Ele(ev.srcElement);
		alert(el);
		alert(eval(el+'.value'));		
	}
}
</script>
</head>

<frameset rows="*,80" cols="*" frameborder="no" border="0" framespacing="0">
  <frameset cols="*,80" frameborder="no" border="0" framespacing="0">
    <frame src="untitled1.html" name="mainFrame" id="mainFrame" />
    <frame src="UntitledFrame-2.html" name="rightFrame" scrolling="No" noresize="noresize" id="rightFrame" />
  </frameset>
  <frame src="untitled2.html" name="bottomFrame" scrolling="No" noresize="noresize" id="bottomFrame" />
</frameset>
<noframes><body>
</body>
</noframes></html>
